home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / tip / pm-pagen.tip < prev    next >
Text File  |  1993-09-15  |  1KB  |  39 lines

  1. % This macro source file is from the four volume series
  2. % "TeX in Practice" by Stephan von Bechtolsheim, published
  3. % 1993 by Springer-Verlag, New York.
  4. % Copyright 1993 Stephan von Bechtolsheim.
  5. % No warranty or liability is assumed.
  6. % This macro may be copied freely if no fees other than
  7. % media cost or shipping charges are charged and as long
  8. % as this copyright and the following source code itself
  9. % is not changed. Please see the series for further information.
  10. %
  11. % Version: 1.0
  12. % Date: May 1, 1993
  13. %
  14. %
  15. % This source code is documented in 30.7.8, p. III-562.
  16. % Original source in file "pp1.TEX", starting line 1499.
  17. \wlog{L: "pm-pagen.tip" ["pp1.TEX," l. 1499, p. III-562]}%
  18. % This file DOES belong to format "texip."
  19. \InputD{counters.tip}
  20. \catcode`\@ = 11
  21. \NewCounter{PageNo}{\arabic}{\TheCounter{PageNo}}% 
  22.     {\TheCounter{PageNo}}
  23. \NewCounter{SWPageNo}{\arabic}%
  24.     {\TheCounter{SWPageNo}}{\TheCounter{SWPageNo}}
  25. \def\@PageNumbersToCounterRegs{%
  26.     \CounterToRegister{\global\pageno}{PageNo}%
  27. }
  28. \SetCounter{PageNo}{1}
  29. \@PageNumbersToCounterRegs
  30. \def\advancepageno{%
  31.     \StepCounter{PageNo}%
  32.     \StepCounter{SWPageNo}%
  33.     \@PageNumbersToCounterRegs
  34. }
  35. \def\folio{% 
  36.     \PrintCounter{PageNo}% 
  37. }
  38. \catcode`\@ = 12
  39.